package com.example.transactionhintassistant.pojo.dto.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Schema(description = "修改邮箱对象")
@Data
public class ChangeEmailDto {
    @Schema(description = "旧邮箱")
    @NotEmpty(message = "旧邮箱不能为空")
    @Email(message = "请填写正确的邮箱地址")
    private String oldEmail;

    @Schema(description = "新邮箱")
    @NotEmpty(message = "新邮箱不能为空")
    @Email(message = "请填写正确的邮箱地址")
    private String email;

    @Schema(description = "验证码")
    @NotEmpty(message = "验证码不能为空")
    private String captcha;
}
